package com.his.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Recipel)实体类
 *
 * @author makejava
 * @since 2020-10-23 18:14:29
 */
@Data
public class Recipel implements Serializable {
    private static final long serialVersionUID = -32096354836341993L;

    private Integer id;
    /**
     * 医生ID
     */
    @NotNull(message = "必须选择开药医生")
    private Integer doctorId;
    /**
     * 病人ID
     */
    @NotNull(message = "必须选择病人")
    private Integer patientId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 是否删除
     */
    private Integer isDelete;
    /**
     * 处方状态 1-护士确认 2-已生成订单
     */
    private String status;

    /**
     * 对应订单id 取药时获取自动生成的订单id
     */
    private Integer orderId;

    //连接查询属性
    /**
     * 子处方列表
     */
    private List<RecipelChild> recipelChild;

    /**
     * 病人对象
     */
    private String patient;

    /**
     * 医生对象
     */
    private String doctor;


}
